Morten, thanks for tip, but it did not solve the impotence of our agent. We share your feeling that all documents once opened to UI with EditDocument method are somehow 'cached' and since that moment Lotus Notes becomes schizophrenic - in the view actions or agents using db.UnprocessedDocuments you see different "copy" of document than if you access them via other methods. Unfortunately, Delete object did not help to stop this serious psychic disease of Lotus Notes. We are very afraid that it is some far-reaching bug deep in code of Lotus Notes client. We also experienced many NSD breakdowns while exploring this issue, what supports this shocking hypothesis too. It makes however all applications using UI classes vulnerable to heavy heavy troubles :((((
Note: See also this thread
http://www-10.lotus.com/ldd/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/6c6872471112c1a585256b5a004c9dc6?OpenDocument